use log::LevelFilter;
use crate::ui::EnhancedLogcat;

mod ui;
mod filter;
mod raw;

fn main() -> eframe::Result<()> {
    env_logger::Builder::new()
        .filter(Some("glow"), LevelFilter::Info)
        .filter(Some("wgpu"), LevelFilter::Info)
        .filter(Some("enhanced_logcat"), LevelFilter::Debug)
        .init();

    let native_options = eframe::NativeOptions {
        viewport: egui::ViewportBuilder::default()
            .with_fullscreen(false)
            .with_maximized(true)
            .with_drag_and_drop(true),
        persist_window: false,
        ..Default::default()
    };

    eframe::run_native(
        "EnhancedLogcat",
        native_options,
        Box::new(|cc| Box::new(EnhancedLogcat::new(cc))))?;
    Ok(())
}
